<?php                                             
require_once 'conf.php';

require_once 'net/crashtoot/php/utils/AuthentificationUtils.php';
//require_once 'net/crashtoot/php/utils/ServerTools.php';
require_once 'net/crashtoot/php/picasa/viewer/PicasaUsersManager.class.php';
require_once 'net/crashtoot/php/picasa/model/PicasaUser.class.php';
require_once 'net/crashtoot/php/picasa/out/IPicasaOut.class.php';
require_once 'net/crashtoot/php/picasa/out/HighslidePicasaOut.class.php';
require_once 'net/crashtoot/php/picasa/out/MoonFlowPicasaOut.class.php';  
require_once 'net/crashtoot/php/picasa/out/GallerifficOut.class.php';
require_once 'net/crashtoot/php/picasa/viewer/Application.class.php';
require_once 'Zend/Loader.php';
Zend_Loader::loadClass('Zend_Http_Client_Adapter_Socket');

session_start();
                
$outManager = new GallerifficOut();
 
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>Ajax Picasa</title>

	<meta http-equiv="X-UA-Compatible" content="chrome=1" />
	<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />

<?php
if ($outManager != null) {
    $outManager->outHeader();
}
?>
<script type="text/javascript">
<?php
if ($outManager != null) {
	$outManager->outJSHeader();
}
?>
</script>
</head>
<body>
<div id="body">
  <div id="menu" style="padding: 5px 20px;">
    <!-- menu -->
    <a href="/index.php" id="action_allalbums" onclick="waitManager.start();" style="float: left;">Tous les albums</a>
    <span style="float: left;">&nbsp;</span>
    <a href="/accounts/" id="picasaUsers" onclick="waitManager.start();" style="float: left;">utilisateurs picasa</a>
    <a href="/logout/" id="action_logout" style="float: right;">deconnection</a>
  </div>
  <div id="content">
<?php
			
include "main.php";

?>
  </div>
</div>
</body>
</html>
